<xml>
<ToUserName><![CDATA[<?php echo $toUser; ?>]]></ToUserName>
<FromUserName><![CDATA[<?php echo $fromUser; ?>]]></FromUserName>
<CreateTime><?php echo $createTime; ?></CreateTime>
<MsgType><![CDATA[news]]></MsgType>
<ArticleCount><?php echo count($content); ?></ArticleCount>
<Articles>
<?php foreach($content as $item): ?>
<item>
<Title><![CDATA[<?php echo $item['title']; ?>]]></Title> 
<Description><![CDATA[<?php echo $item['description']; ?>]]></Description>
<PicUrl><![CDATA[<?php echo $item['picurl']; ?>]]></PicUrl>
<Url><![CDATA[<?php echo $item['url']; ?>]]></Url>
</item>
<?php endforeach; ?>
</Articles>
</xml> 